home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3420 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  795 b 

  1. Path: freenet.columbus.oh.us!not-for-mail
  2. From: kstemen@freenet.columbus.oh.us (Kyle Stemen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How I redirect output away from the screen?
  5. Date: 23 Jan 1996 17:46:10 -0500
  6. Organization: The Greater Columbus FreeNet
  7. Message-ID: <4e3ofi$qe5@acme.freenet.columbus.oh.us>
  8. References: <DLM67E.G7E@eskimo.com>
  9. NNTP-Posting-Host: acme.freenet.columbus.oh.us
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. C Marsho (maryann@eskimo.com) wrote:
  13. : Here's my problem.  When I use this DOS function
  14.  
  15. :     system("move *.* c:\dir1");
  16.  
  17. : it shows this on the screen
  18.  
  19. :     c:\file1.txt  =>  c:\dir1
  20.  
  21. : How can I prevent this using BC++?
  22. : Reply to maryann@eskimo.com please.
  23.  
  24. Did you try
  25. system("move *.* c:\dir1 >text.txt");
  26. ?
  27. If you do that it should redirect the output into text.txt.
  28.